﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace DTO
{
    public class XeDTO
    {

        private int _id;

        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }
        private string _tenXe;

        public string TenXe
        {
            get { return _tenXe; }
            set { _tenXe = value; }
        }
        private string _bienSo;

        public string BienSo
        {
            get { return _bienSo; }
            set { _bienSo = value; }
        }
        private int _loai;

        public int Loai
        {
            get { return _loai; }
            set { _loai = value; }
        }
        private string _hangSanXuat;

        public string HangSanXuat
        {
            get { return _hangSanXuat; }
            set { _hangSanXuat = value; }
        }
        private int _soGhe;

        public int SoGhe
        {
            get { return _soGhe; }
            set { _soGhe = value; }
        }
        private int _tinhTrang;

        public int TinhTrang
        {
            get { return _tinhTrang; }
            set { _tinhTrang = value; }
        }
        private bool _daXoa;

        public bool DaXoa
        {
            get { return _daXoa; }
            set { _daXoa = value; }
        }

        public static IEnumerable<SelectListItem> GetListTinhTrang()
        {
            List<SelectListItem> lsTinhTrang = new List<SelectListItem>();
            SelectListItem item1 = new SelectListItem();
            item1.Value = "1";
            item1.Text = "Đang chạy";
            lsTinhTrang.Add(item1);
            SelectListItem item2 = new SelectListItem();
            item2.Value = "2";
            item2.Text = "Đang bảo trì";
            lsTinhTrang.Add(item2);
            IEnumerable<SelectListItem> IEnumerableTinhTrang = lsTinhTrang;
            return IEnumerableTinhTrang;
        }

        public static IEnumerable<SelectListItem> GetListLoaiXe()
        {
            List<SelectListItem> lsLoaiGhe = new List<SelectListItem>();
            SelectListItem item1 = new SelectListItem();
            item1.Value = "1";
            item1.Text = "Ghế ngồi";
            lsLoaiGhe.Add(item1);

            SelectListItem item2 = new SelectListItem();
            item2.Value = "2";
            item2.Text = "Giường nằm";
            lsLoaiGhe.Add(item2);

            SelectListItem item3 = new SelectListItem();
            item3.Value = "3";
            item3.Text = "Trung chuyển";
            lsLoaiGhe.Add(item3);

            IEnumerable<SelectListItem> IEnumerableTinhTrang = lsLoaiGhe;
            return IEnumerableTinhTrang;
        }

    }
}
